//
//  BBMineViewController.m
//  QuLuoMianApp
//
//  Created by Sierra on 2017/12/21.
//  Copyright © 2017年 科大讯飞. All rights reserved.
//

#import "BBMineViewController.h"
#import "BBLoginViewController.h"

#import "MineCollectViewController.h"
#import "MycommentViewController.h"


#import "MineCommentViewController.h"
#import "MineFQAViewController.h"

@interface BBMineViewController ()

@end

@implementation BBMineViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


- (IBAction)didTapLoginAndRegisterBtn:(UIButton *)sender {
    BBLoginViewController * loginVC = [[BBLoginViewController alloc] init];
    [self.navigationController pushViewController:loginVC animated:YES];
}


- (IBAction)didTapMiddleBtnClick:(UIButton *)sender {
    
    switch (sender.tag) {
        case 10:
        {
            MineCollectViewController * collectionVC = [MineCollectViewController new];
            collectionVC.type = @"1";
            [self.navigationController pushViewController:collectionVC animated:YES];
        }
            break;
        case 20:
        {
            MycommentViewController * commentVC = [MycommentViewController new];
            [self.navigationController pushViewController:commentVC animated:YES];

        }
            break;

        case 30:
        {
            MineCollectViewController * collectionVC = [MineCollectViewController new];
             collectionVC.type = @"2";
            [self.navigationController pushViewController:collectionVC animated:YES];

        }
            break;

            
        default:
            break;
    }
}


- (IBAction)didTapBottomBtnClick:(UIButton *)sender {
    
    
    switch (sender.tag) {
        case 100:
        {
            MineCommentViewController * collectionVC = [MineCommentViewController new];
            [self.navigationController pushViewController:collectionVC animated:YES];
        }
            break;
        case 200:
        {
            MineFQAViewController * collectionVC = [MineFQAViewController new];
            [self.navigationController pushViewController:collectionVC animated:YES];
        }
            break;
            
        case 300:
        {
            MineCommentViewController * collectionVC = [MineCommentViewController new];
            [self.navigationController pushViewController:collectionVC animated:YES];
        }
            break;
            
            
        default:
            break;
    }
}



/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
